package com.tdkj.model.risevalue;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * XnkyPlate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "risevalue_plate_quotation_use_info")
public class BeanPlateQuotationUseInfo extends BaseEntity implements java.io.Serializable {

	// Fields
	private BeanUser user;
	private BeanPlateQuotation plate;
	private Long limitTime;

	/**
	 * @return the user
	 */
	@ManyToOne(cascade={CascadeType.REFRESH}, fetch=FetchType.LAZY)
	@JoinColumn(name="user_id")
	public BeanUser getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(BeanUser user) {
		this.user = user;
	}

	/**
	 * @return the quotation
	 */
	@ManyToOne(cascade={CascadeType.REFRESH}, fetch=FetchType.LAZY)
	@JoinColumn(name="plate_id")
	public BeanPlateQuotation getPlate() {
		return plate;
	}

	/**
	 * @param quotation the quotation to set
	 */
	public void setPlate(BeanPlateQuotation plate) {
		this.plate = plate;
	}

	/**
	 * @return the limitTime
	 */
	public Long getLimitTime() {
		return limitTime;
	}

	/**
	 * @param limitTime the limitTime to set
	 */
	public void setLimitTime(Long limitTime) {
		this.limitTime = limitTime;
	}
	
	

}